package dice.sinanya.entity;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

import static dice.sinanya.system.MessagesSystem.DATA_FORMAT;

/**
 * @author SitaNya
 * 日期: 2019-08-26
 * 电子邮箱: sitanya@qq.com
 * 维护群(QQ): 162279609
 * 有任何问题欢迎咨询
 * 类说明:
 */
public class EntityLogList {
    Timestamp timestamp;
    String level;
    String info;

    public EntityLogList() {
    }

    public String getTimestamp() {
        return DATA_FORMAT.format(timestamp);
    }

    public void setTimestamp(Timestamp timestamp) {
        this.timestamp = timestamp;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "EntityLogList{" +
                "timestamp=" + timestamp +
                ", level='" + level + '\'' +
                ", info='" + info + '\'' +
                '}';
    }
}
